<%--Working Zone
    Document   : register
    Created on : Jun 3, 2014, 3:38:35 AM
    Author     : Yogesh Paisode
--%>

<jsp:include page="header.jsp"/>
 <li><a href="login.jsp">Login</a></li>
    <li><a href="register.jsp">Sign Up</a></li>

         </ul>
        </nav>


  </div>
 </div>






<div style="position:relative;width: auto;z-index: 10000;">
    <div id="cssmenu" style="background-color: black;">
     <section class="innerpages">
         <div class="grid_12" style="background-image: url('commonfiles/images/satyapal.jpg'); width:100%;">
             <h1>Services</h1>
         </div>
     </section>
</div>
</div>


<div class="block2">
    <div class="re">
    <div class="regs1">

         <div >
            <h1 style="padding: 42px 0 24px; font-size: 28px; line-height: 36px">
                Connect with Vehicalhai.com<br>Fulfill the dream of your car.. </h1>
         </div>
        <div style="width: 500px;">
            <ul class="our_process">
              <li class="img1" type="none">
                <h4>Step1: Planning</h4>
                <p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. </p>
              </li>
              <li class="img2" type="none">
                <h4>Step2: Get Quotation</h4>
                <p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. </p>
              </li>
              <li class="img3" type="none">
                <h4>Step3:Financer</h4>
                <p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. </p>
              </li>
              <li class="img4" type="none">
                <h4>Step4:Get Free EMI</h4>
                <p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. </p>
              </li>
            </ul>
    </div>
    </div>
    <div class="registerform">
            <p15>Note: Please make sure your details are correct before submitting form and that all fields are completed!.</p15>




<script language="JavaScript">

    var activationCodeEntered;
    var firstName="";

 var flag=0;

function checnum(as)
{
	var dd = as.value;

        if(dd.length<=10){

            if(isNaN(dd))
                    {
                            dd = dd.substring(0,(dd.length-1));
                            as.value = dd;
                    }

        }
        else{


             dd = dd.substring(0,(dd.length-1));
                            as.value = dd;
        }

        if(dd.length==10){
            flag=1;
        }

        if(dd.length<10){
            flag=0;
        }


}


 function onlyAlphabets(e, t) {
            try {
                if (window.event) {
                    var charCode = window.event.keyCode;
                }
                else if (e) {
                    var charCode = e.which;
                }
                else { return true; }
                if ((charCode > 64 && charCode < 91) || (charCode > 96 && charCode < 123))
                    return true;
                else
                    return false;
            }
            catch (err) {
                alert(err.Description);
            }
        }



        function mob(){


            if(flag==0){
                 alert("Invalid Mobile Number");

                    emailChk.value="";

                }


        }






        function checkPass()
{
    //Store the password field objects into variables ...
    var pass1 = document.getElementById('pass1');
    var pass2 = document.getElementById('pass2');
    //Store the Confimation Message Object ...
    var message = document.getElementById('confirmMessage');
    //Set the colors we will be using ...
    var goodColor = "#66cc66";
    var badColor = "#ff6666";
    //Compare the values in the password field
    //and the confirmation field
    if(pass1.value == pass2.value){
        //The passwords match.
        //Set the color to the good color and inform
        //the user that they have entered the correct password
        pass2.style.backgroundColor = goodColor;
        message.style.color = goodColor;
        message.innerHTML = "Passwords Match!"
    }else{
        //The passwords do not match.
        //Set the color to the bad color and
        //notify the user.
        pass2.style.backgroundColor = badColor;
        message.style.color = badColor;
        message.innerHTML = "Passwords Do Not Match!"
    }
}







 var activationCode="";







</script>

             <style>
    button.blue, a.blue, input[type=submit].blue {
    padding: 10px 30px;
    -webkit-border-radius: 2px 2px;
    border: solid 1px #3079ed;
    background: #4d90fe; /* Old browsers */
    background: -moz-linear-gradient(top,  #4d90fe 0%, #4787ed 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#4d90fe), color-stop(100%,#4787ed)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #4d90fe 0%,#4787ed 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #4d90fe 0%,#4787ed 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #4d90fe 0%,#4787ed 100%); /* IE10+ */
    background: linear-gradient(top,  #4d90fe 0%,#4787ed 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4d90fe', endColorstr='#4787ed',GradientType=0 ); /* IE6-9 */
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    font-weight:bold;
    font-family:Arial, Helvetica, sans-serif;
    text-transform:uppercase;
    font-size:11px;
    line-height: 1;
}
button.blue:hover, a.blue:hover, input[type=submit].blue:hover {
    border: 1px solid #2f5bb7;
    background: #4d90fe; /* Old browsers */
    background: -moz-linear-gradient(top,  #4d90fe 0%, #357ae8 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#4d90fe), color-stop(100%,#357ae8)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #4d90fe 0%,#357ae8 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #4d90fe 0%,#357ae8 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #4d90fe 0%,#357ae8 100%); /* IE10+ */
    background: linear-gradient(top,  #4d90fe 0%,#357ae8 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4d90fe', endColorstr='#357ae8',GradientType=0 ); /* IE6-9 */
    -webkit-box-shadow: 0 1px 1px #333333;
    -moz-box-shadow: 0 1px 1px #333333;
    box-shadow: 0 1px 1px #333333;
}
button.blue:active, a.blue:active, input[type=submit].blue:active {
    border: 1px solid #377cea;
    -webkit-box-shadow: inset 0 0 2px 2px #377cea, 0 1px 0 0 #aaa;
    -moz-box-shadow: inset 0 0 2px 2px #377cea, 0 1px 0 0 #aaa;
    box-shadow: inset 0 0 2px 2px #377cea, 0 1px 0 0 #aaa;
}
a{
    text-decoration: none;
    font-family: sans-serif;
    font-weight: 5px;


}
</style>




<%
       com.register.Model.Step1_Model step1=(com.register.Model.Step1_Model)request.getAttribute("step1");

        session.setAttribute("code", step1.getActivationCode());

        out.print("<script> activationCode='"+step1.getActivationCode()+"';  firstName='"+step1.getFirstName()+"';</script>");
%>

<script>



    function showAndClearField(frm){
  if (frm.firstName.value == "")
      alert(firstName+" You didn't enter anything!")
  else


      if(frm.firstName.value==activationCode){

                   window.location.href="XSdsfbweybfjefsisanasjdhashduiashdasbhwuewqiourioefjnfjansfnsajasdsadjsadjasdjsaidjsadsjdsadhduawiduaduaudusadsaudHHJHBSHSBhbhbdshfbd.jsp";

            
      }
  else{
                   outputdiv = document.getElementById('err');
	outputdiv.innerHTML = "<p><font color=red>"+firstName+" Your Entered Code Is Wrong</font></p>";

  }


  frm.firstName.value = ""
}

</script>


            <!---Eorking Zone--->

            <div id="signup" name="Register_Model">
                           <FORM NAME="test">




                                    <h1>Step 2: Verification </h1>



                                                <p><%


                                                        out.print(step1.getActivationCode());
            %><br>Thank You <font color="red"><%
                                        out.print(step1.getFirstName()+" "+step1.getLastName());
                                                                                       %></font><br> For Connecting With<font color="red"> VehicleHai.com</font><br>Registrasion Link Has Been Sent On<br>Your Email ID <font color="red"><%

                                                        out.print(step1.getEmailId());

                                                                                       %></font><br> And Activation Code Is Sent Vie An SMS On Mobile Number<font color="red"> <font color="red"><%

                                                                    out.print(step1.getMobileNumber()+"</font><br>");
                                                                %></font></p>

                                                                                       <div id="err"></div>

                                                                                       <input type="text" placeholder="<%
                                                                                       out.print(step1.getFirstName());
                                                                %> Cheack Your SMS At <%
                                                                                       out.print(step1.getMobileNumber());
                                                                %>And Enter Code Hear." required="" NAME="firstName"  />

                                <button type="submit" onClick="showAndClearField(this.form)">Click Hear To Submit Code!</button>




                            </FORM>

                                                                       <script type="text/javascript">
     // Popup window code
     function newPopup(url) {
         popupWindow = window.open(
		url, 'popUpWindow', 'height=700,width=950,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')
     }
</script>
                                                                <div align="center">  <p>Or Open Your Email</p></div>

                                                                <%

                                                                        out.print(step1.getDomain());

                                                                 %>

                            </div>

                            </div>

           </div>

</div>
</div>



<%

        out.print(step1.getIframe());

%>



<jsp:include page="footer.jsp"/>
